//
//  ZFKFlowLayout.h
//  UI21_自定义的瀑布流
//
//  Created by SHG on 16/3/31.
//  Copyright © 2016年 apple. All rights reserved.
//

#import <UIKit/UIKit.h>
@class ZFKFlowLayout;

@protocol ZFKFlowLayoutDelegate <NSObject>

- (CGFloat)layout:(ZFKFlowLayout *)layout heightForItemAtIndexPath:(NSIndexPath *)indexPath width:(CGFloat)width;

@end

@interface ZFKFlowLayout : UICollectionViewLayout

// 指定有多少列
@property (nonatomic, assign)NSInteger columnCounts;

// 设置距离屏幕四周的便捷距离
@property (nonatomic, assign)UIEdgeInsets edgeInsets;

// 列间距
@property (nonatomic, assign)NSInteger colunmSpace;

// 行间距
@property (nonatomic, assign)NSInteger  rowSpace;

@property (nonatomic, assign)id<ZFKFlowLayoutDelegate>delegate;

@end
